home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVBWRITE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  32 lines

  1. /*================================================*/
  2. /* TVBWRITE.C                                     */
  3. /*   send mail with specified status              */
  4. /*                                                */
  5. /* (c) Copyright 1988 Ralf Brown                  */
  6. /*     All Rights Reserved                        */
  7. /* May be freely copied for noncommercial use,    */
  8. /* provided that this copyright notice remains    */
  9. /* intact and any changes are indicated in the    */
  10. /* comment blocks preceding functions             */
  11. /*================================================*/
  12.  
  13. #include "tvapi.h"
  14.  
  15. /*================================================*/
  16. /* TVmbx_write  send mail msg by val/ref w/ stat  */
  17. /*   Ralf Brown 4/22/88                           */
  18. /*================================================*/
  19.  
  20. void pascal TVmbx_write(OBJECT mbx,int reference,int status,char *msg,int length)
  21. {
  22.    PARMLIST3 p ;
  23.  
  24.    p.num_args = 3 ;
  25.    p.arg[0] = (DWORD) (char far *) msg ;
  26.    p.arg[1] = (DWORD) length ;
  27.    p.arg[2] = (DWORD) status ;
  28.    TVsendmsg(reference?SUBFROM_MSG:ADDTO_MSG, mbx?TOS:MAILME, mbx, (PARMLIST *)&p) ;
  29. }
  30.  
  31. /* End of TVBWRITE.C */
  32.